<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>XHR</title>
</head>

<body>
    <div id="iframe"></div>
    <script>
        var el = document.getElementById('iframe');
        var content = '';
        var aj = new XMLHttpRequest();
        aj.open('get',
            'https://laiye-im-saas.oss-cn-beijing.aliyuncs.com/richText/694c5cf3-acc9-4775-9636-cf03f04fcb62.html');
        aj.onreadystatechange = function () {
            if (aj.readyState == 4 && aj.status == 200) {
                content = aj.responseText;
                console.log(aj.responseText);
            }
        };
        aj.send();
        setTimeout(() => {
            el.innerHTML = content;
        }, 2000);
    </script>
</body>

</html>